<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lmpop.trade.ti_filter.*" %>
<%@ page import="java.util.*" %>
<% 
  	String word_id = "";
  	if(request.getParameter("word_id")!=null) 
		word_id = request.getParameter("word_id");
  	Ti_filterInfo ti_filterInfo = new Ti_filterInfo();
  	List list = ti_filterInfo.getListByPk(word_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String name="";
  	if(map.get("name")!=null) name = map.get("name").toString();
	
  	String value="";
  	if(map.get("value")!=null) value = map.get("value").toString();
	
	
	String s_title = "";
	if(request.getParameter("s_title")!=null && !request.getParameter("s_title").equals("")){
		s_title = new String(request.getParameter("s_title").trim().getBytes("utf-8"));
	}
	String iStart = "0";
	if(request.getParameter("iStart")!=null && !request.getParameter("iStart").equals("")){
		iStart = request.getParameter("iStart");
	}

	String url = "/program/admin/filter/index.jsp?s_title="+s_title+"&iStart="+iStart;
%>
<html>
  <head>
    <title>敏感字管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script  type="text/javascript" src="filter.js"></script>
</head>

<body>

	<h1>修改敏感字</h1>
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				名称<font color="red">*</font>
			</td>
			<td><input name="name" id="name" maxlength="25" value="<%=name%>" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				替换规则<font color="red">*</font>
			</td>
			<td><input name="value" id="value" maxlength="25" type="text" value="<%=value%>" /></td>
		</tr>			
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="3948" />
	  			<input type="hidden" name="word_id" value="<%=word_id%>" />
				<input type="hidden" name="jumpurl" value="<%=url%>" />
				<input type="hidden" name="is_filter" value="0" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkInfo()"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='<%=url%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
